import request from '@/utils/request'

// 查询种植订单列表
export function listFarmerorder(query) {
  return request({
    url: '/farmer/farmerorder/list',
    method: 'get',
    params: query
  })
}

// 查询种植订单详细
export function getFarmerorder(guid) {
  return request({
    url: '/farmer/farmerorder/' + guid,
    method: 'get'
  })
}

// 新增种植订单
export function addFarmerorder(data) {
  return request({
    url: '/farmer/farmerorder',
    method: 'post',
    data: data
  })
}

// 修改种植订单
export function updateFarmerorder(data) {
  return request({
    url: '/farmer/farmerorder',
    method: 'put',
    data: data
  })
}

// 删除种植订单
export function delFarmerorder(guid) {
  return request({
    url: '/farmer/farmerorder/' + guid,
    method: 'delete'
  })
}

// 导出种植订单
export function exportFarmerorder(query) {
  return request({
    url: '/farmer/farmerorder/export',
    method: 'get',
    params: query
  })
}